import Vue from 'vue'
import VueRouter from 'vue-router'
import ScreenViewPage from "@/views/ScreenViewPage";
import MapPage from "@/views/MapPage";

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/screenviewpage'
  },
  {
    path: '/mappage',
    component: MapPage
  },
  {
    path:'/screenviewpage',
    component: ScreenViewPage,
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
